﻿@using GoodMan.Infrastructure.Entities.Entity;
@{
    ViewBag.Title = "商品评价";
    Layout = "~/Views/Shared/_Main.cshtml";
    List<Product> products = ViewBag.products;
    int orderId = ViewBag.OrderId == null ? 0 : ViewBag.OrderId;
}
<div class="container">
    <ul class="breadcrumb">
        <li><a href="../home/index">首页</a> <span class="divider">></span></li>
        <li class="active">商品评价</li>
    </ul>
    <div class="row">
        <div class="span12">
            <div class="row-fluid"><span style="color:Red">亲，评价有更多积分哦，另外请对您的言行负责哦，好青年要遵守中华人民共和国有关法律法规,尊重网上道德哦</span><br />
            <form  action="/usercenter/DoAppraisie" method="post">
            <input type="hidden" value="@orderId" name="orderId" />
            @{
                if (products != null && products.Count > 0)
                {
                    string ids="";
                    foreach (var item in products)
                    {
                        ids = ids + item.Id + ",";
                         <div id="doAppraise" style="overflow:hidden;">
                             <div class="group-on-title">@item.ProductName</div>
                            <div class="padding-h-10"> 
                               <div class="row-fluid">
                               <div>评分：<span><input type="radio" value="5" checked="checked" name="appraiseGrade@(item.Id)"/>非常满意</span>
                               &nbsp;&nbsp;<span><input type="radio" value="4"  name="appraiseGrade@(item.Id)"/>满意</span>
                               &nbsp;&nbsp;<span><input type="radio" value="2"  name="appraiseGrade@(item.Id)"/>一般</span>
                               &nbsp;&nbsp;<span><input type="radio" value="1"  name="appraiseGrade@(item.Id)"/>不满意</span>
                               &nbsp;&nbsp;<span><input type="radio" value="0"  name="appraiseGrade@(item.Id)"/>非常不满意</span> 
                               </div>
                               <br />
                                
                               <textarea style="width:99%" name="appraiseContent@(item.Id)"></textarea>
                              <br />
                           </div>
                          </div>
                          </div>
                    }
                     <input type="hidden" value="@ids" name="pids" />
                     <div class="text-center"><input type="submit" class="btn btn-danger" value="确定"/></div>
                                
                }
            }
             </form>  
            </div>
        </div>
    </div>
</div>
